﻿using System;

namespace Routine.Api.Entities
{
    public class Employee        //数据库如果改变了，这个Entity要跟着改变
    {
        public Guid Id { get; set; }
        public Guid CompanyId { get; set; }            //这个是个外键。指向公司ID

        public string EmployeeNo { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public Gender Gender { get; set; }              //性别是枚举类型
        public DateTime DateOfBirth { get; set; }

        public Company Company { get; set; }             //关联的导航属性。
    }
}